package com.hmsm.sys.po;

import java.util.Map;
import java.util.Set;

import com.hmsm.sys.bean.LocalRole;

/**
 * RoleInfo entity. @author MyEclipse Persistence Tools
 */

public class RoleInfo extends LocalRole implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 2941145203385757575L;

	@Override
	public boolean equals(Object obj) {
		boolean result = false;
		if (pkId!=null&&obj!=null&&obj instanceof RoleInfo){
			result = pkId.equals(((RoleInfo)obj).getPkId());
		}
		return result;
	}

	private Integer pkId;
	private Integer orgId;
	private String name;
	private Integer state;
	private String remark;
	
	private String orgName;
	
	private Map<String, Set<FuncInfo>>	roleFuncMap;

	// Constructors

	public Map<String, Set<FuncInfo>> getRoleFuncMap() {
		return roleFuncMap;
	}

	public void setRoleFuncMap(Map<String, Set<FuncInfo>> roleFuncMap) {
		this.roleFuncMap = roleFuncMap;
	}

	/** default constructor */
	public RoleInfo() {
	}
	
	public RoleInfo(Integer pkId) {
		this.pkId = pkId;
	}

	/** minimal constructor */
	public RoleInfo(Integer orgId, String name, Integer state) {
		this.orgId = orgId;
		this.name = name;
		this.state = state;
	}

	/** full constructor */
	public RoleInfo(Integer orgId, String name, Integer state, String remark) {
		this.orgId = orgId;
		this.name = name;
		this.state = state;
		this.remark = remark;
	}

	// Property accessors

	public Integer getPkId() {
		return this.pkId;
	}

	public void setPkId(Integer pkId) {
		this.pkId = pkId;
	}

	public Integer getOrgId() {
		return this.orgId;
	}

	public void setOrgId(Integer orgId) {
		this.orgId = orgId;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

}